<?php

class App_Model_User extends Ext_Db_Table  
{
    public function getUserCount()
    {
        $db = $this->getAdapter();
        $select = $db->select();
        $select
            ->from($this->_dbprefix.'user', array(
               Zend_Paginator_Adapter_DbSelect::ROW_COUNT_COLUMN => 'COUNT(*)'
            ))
            ;
        
        return $select;
    }
    
    public function getUserList()
    {
        $db = $this->getAdapter();
        $select = $db->select();
        $select
            ->from($this->_dbprefix.'user', "id")
            ->order('id DESC')
            ;
        
        return $select;
    }
}  

